<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${path}/pages/">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <title>个人主页</title>
  <link rel="stylesheet" href="../layui/css/layui.css" media="all">
</head>
<body id="body">
<fieldset class="layui-elem-field">
  <legend >用户名</legend>
  <div class="layui-field-box" id="uname">
    	
  </div>
</fieldset>
<fieldset class="layui-elem-field">
  <legend >手机号</legend>
  <div class="layui-field-box" id="phonenumber">
    	
  </div>
</fieldset>
<fieldset class="layui-elem-field">
  <legend >邮箱</legend>
  <div class="layui-field-box" id="email">
  </div>
</fieldset>
</body>
<script src="../js/jquery-1.7.min.js"></script>
<script src="../layui/layui.js"></script>
<script>

layui.use(['layer','jquery'], function(){
	var $ = layui.$;
	var layer = layui.layer;
	var userName,phoneNumber,email;
	var writerId=parent.document.getElementById('writerId').value;
	$.getJSON('${path}/action/user/listWriterInfo',{writerId:writerId}, function(data) {
		userName=data.userName;
		phonerNumber=data.phoneNumber;
		email=data.email;
		$('#uname').html(data.userName);
		$('#phonenumber').html(data.phoneNumber);
		$('#email').html(data.email);
	});	

	var height = document.body.offsetHeight;
		parent.document.getElementById('iframe1').height = height + 80;
	
})
</script>
</html>